@font-face{
	font-family: kt; /*资源圆体*/
	src: url("./fonts/kt.ttf");
}
@font-face{
	font-family: zyyt; /*资源圆体*/
	src: url("./fonts/zyyt.woff2");
}

/* styles.css */
*{
    margin: 0;
    padding: 0;
    user-select: none;
}
html, body{
    maring: 0;
    background: none;
}

/* 每日一言 */
#box{
    display: flex;
    position: absolute;
}
#box.horizon{ /* 水平 */
    flex-direction: column;
    width: 50vw;
    left: 50%;
    bottom: 2vh;
    transform: translateX(-50%);
}
#box.vertical{ /* 竖直 */
    flex-direction: column-reverse;
	writing-mode: vertical-rl;
    height: calc(100vh - 300px - 3vh);
    top: 300px;
    right: 1vh;
    transform: translateX(-50%);
}

/* 署名部分 */
#box > .down{
    display: flex;
}


#box > .down > #person{
    flex: none;
    padding: 1rem;
}


#box > .down > .line{
	border-radius: 3px;
    background-color: white;
}
#box.horizon > .down > .line{ /* 水平 */
    height: 3px;
    width: 100%;
    margin: auto 0;
}
#box.vertical > .down > .line{ /* 竖直 */
    height: 100%;
    width: 3px;
    margin: 0 auto;
}


/* 一言部分 */
#words{
    background: linear-gradient(20deg, #a3f000, #f0a300);
    background-clip: text;
    color: transparent;
    font-size: 4em;
	font-family: kt;
    text-align: center;
}
#words.fzc{
	background: linear-gradient(20deg, red, orange, yellow, green, cyan, blue, purple);
    -webkit-background-clip: text;
    background-clip: text;
	animation: 3s linear rotate infinite;
}
#person{
    color: white;
    font-size: 3em;
	font-family: zyyt;
    text-align: center;
    text-shadow: 1px 1px 1px gray,
        2px 2px 2px gray;
}

@keyframes rotate{
	0%{
		background: linear-gradient(-20deg, red, orange, yellow, green, cyan, blue, purple);
        -webkit-background-clip: text;
        background-clip: text;
	}
	50%{
		background: linear-gradient(100deg, red, orange, yellow, green, cyan, blue, purple);
        -webkit-background-clip: text;
        background-clip: text;
	}
	100%{
		background: linear-gradient(220deg, red, orange, yellow, green, cyan, blue, purple);
        -webkit-background-clip: text;
        background-clip: text;
	}
}

/* Add styles here to customize the appearance of your app */


#canvas{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}